package com.ruoyi.medicine.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.medicine.domain.HisMedicineDrug;

import java.util.List;

/**
 * @program: RuoYi-Vue-master
 * @ClassName HisMedicineCartService
 * @description:
 * @author: xiaoJie
 * @create: 2024-09-01 14:18
 * @Version 1.0
 */
public interface iHisMedicineCartService {
    //删除药品信息
    int deleteMedicineCartByDrugId(Long[] drugId,Long userId) throws JsonProcessingException;
    //修改购物车数量
    int update(Long userId,Long drugId,Integer num) throws JsonProcessingException;
    //查询购物车
    List<HisMedicineDrug> selectCarByUserId(Long userId) throws JsonProcessingException;
    //添加购物车
    int saveCat(Long userId, Long[] drugId) throws JsonProcessingException;
}
